From 115df07121a530ed58a62a4703258dbde7b8512b Mon Sep 17 00:00:00 2001 From: oliskoli Date: Wed, 16 Apr 2008 21:47:25 +0000 Subject: [PATCH] pdbfile: Fix MSVC errors and warnings. --- gpsbabel/pdbfile.c | 4 ++-- gpsbabel/pdbfile.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gpsbabel/pdbfile.c b/gpsbabel/pdbfile.c index 3d53c7bea..2f9c1638f 100644 --- a/gpsbabel/pdbfile.c +++ b/gpsbabel/pdbfile.c @@ -82,7 +82,7 @@ pdb_load_data(pdbfile *fin) { gbuint16 i, ct; pdbrec_t *last_rec; - gbint32 offs; + gbuint32 offs; pdbrec_t *rec; /* load the header */ @@ -157,7 +157,7 @@ pdb_load_data(pdbfile *fin) last_rec = fin->rec_list; if (fin->appinfo_offs != 0) { - gbint32 top; + gbuint32 top; /* seek to application info offset */ while (offs < fin->appinfo_offs) { diff --git a/gpsbabel/pdbfile.h b/gpsbabel/pdbfile.h index 4bef52211..b1c652f04 100644 --- a/gpsbabel/pdbfile.h +++ b/gpsbabel/pdbfile.h @@ -58,8 +58,8 @@ typedef struct { time_t mtime; /* modification time */ time_t btime; /* backup time */ gbuint32 revision; - gbint32 appinfo_offs; /* offset to application info */ - gbint32 index_offs; /* offset to sort-index info */ + gbuint32 appinfo_offs; /* offset to application info */ + gbuint32 index_offs; /* offset to sort-index info */ gbuint32 creator; gbuint32 type; gbuint32 uid; -- 2.30.2